-- GENERATED SPELL FOR [Nethergarde Cleric] --


function spell0_6000(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_6000', 3500, 1)
end

function spell1_6000(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6000', 2500, 1)
end

function spell2_6000(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(11974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6000', 30324, 1)
end

function Sorts_6000(pUnit, Event)
local choix_sorts_6000 = math.random(0, 2)
if choix_sorts_6000 == 0 then
pUnit:RegisterEvent('spell0_6000', 1, 1)
end
if choix_sorts_6000 == 1 then
pUnit:RegisterEvent('spell1_6000', 1, 1)
end
if choix_sorts_6000 == 2 then
pUnit:RegisterEvent('spell2_6000', 1, 1)
end
end

function mob6000_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6000', math.random(1500, 3000), 1)
end

function mob6000_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6000_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6000_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6000, 1, 'mob6000_Action')
RegisterUnitEvent(6000, 2, 'mob6000_Leave')
RegisterUnitEvent(6000, 3, 'mob6000_Kill')
RegisterUnitEvent(6000, 4, 'mob6000_Die')
